package day03;
//赋值运算符
public class OperDemo04 {
    public static void main(String[] args) {
        //4) 赋值运算符: =, +=, -=, *=, /=, %=
        int a =5;
        /*
        第一遍:
        a+=10; //相当于a=(int)(a+10)
        System.out.println(a); //15
        a *=2; //相当于a=(int)(a*2)
        System.out.println(a); //30
        a /=6; //相当于a=(int)(a/6)
        System.out.println(a); //5
         */
        a += 10; //相当于a=(int)(a+10)
        System.out.println(a); //15
        a *= 2; //相当于a=(int)(a+10)
        System.out.println(a); //30
        a /= 6; //相当于a=(int)(a/6)
        System.out.println(a); //5
    }
}
